//
//  xiangmujinduTableViewCell.swift
//  BusinessIOS
//
//  Created by Rain on 2018/12/29.
//  Copyright © 2018 XingJian Li. All rights reserved.
//

import UIKit

class xiangmujinduTableViewCell: UITableViewCell {
    
    var titleLbel:UILabel!
    
    
    var nameLbel:UILabel!
    
    var jinduButton :UIButton!
    
    required init?(coder aDecoder: NSCoder) {
        
        super.init(coder: aDecoder)
        
    }
    
    
    override init(style: UITableViewCellStyle, reuseIdentifier: String?) {
        
        super.init(style: style, reuseIdentifier: reuseIdentifier)
        
        self.lauoutUI()
        
    }
    func lauoutUI(){
        
        titleLbel = UILabel()
        
        titleLbel.text = "项目进度"
        titleLbel.textAlignment = .left
        titleLbel.font = UIFont.systemFont(ofSize:12)//一般方法
        self.contentView.addSubview(self.titleLbel!)
        
        
        nameLbel = UILabel()
        
        nameLbel.text = "再谈"
        nameLbel.textAlignment = .right
        nameLbel.font = UIFont.systemFont(ofSize:12)//一般方法
        self.contentView.addSubview(self.nameLbel!)
        
        
       
        jinduButton = UIButton(type: UIButtonType.roundedRect)
        

       jinduButton.setImage(UIImage(named:"下箭头灰"), for: .normal)
        self.contentView.addSubview(self.jinduButton!)
        
        
        self.layoutView()
        
    }
    
    func layoutView() {
        
        self.titleLbel.snp.makeConstraints { (make) in
            make.top.equalTo(self.snp.top).offset(5)
            make.left.equalTo(self.snp.left).offset(10)
            make.width.equalTo(150)
            make.height.equalTo(30)
        }
        
        self.nameLbel.snp.makeConstraints { (make) in
            make.top.equalTo(self.snp.top).offset(5)
            make.right.equalTo(self.snp.right).offset(-50)
            make.left.equalTo(self.titleLbel.snp.left).offset(10)
            make.height.equalTo(30)
        }
        
        
        
        self.jinduButton.snp.makeConstraints { (make) in
            make.top.equalTo(self.snp.top).offset(5)
            make.width.equalTo(30)
            make.right.equalTo(self.snp.right).offset(-10)
            make.height.equalTo(30)
        }
        
        
    }
    
    override func awakeFromNib() {
        super.awakeFromNib()
        // Initialization code
    }

    override func setSelected(_ selected: Bool, animated: Bool) {
        super.setSelected(selected, animated: animated)

        // Configure the view for the selected state
    }

}
